﻿<!DOCTYPE html>
<!-- 新 Bootstrap 核心 CSS 文件 -->
			<link rel="stylesheet" href="static/css/bootstrap.min.css">
            <!-- 可选的Bootstrap主题文件（一般不用引入） -->
			<link rel="stylesheet" href="static/css/bootstrap-theme.min.css">

            <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
			<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>

			<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
			<script src="static/js/bootstrap.min.js"></script>
            
            <link href="static/css/homepage.css" rel="stylesheet" type="text/css" />

<meta charset="utf-8">
<style>

.link {
  fill: none;
  stroke: green;
  stroke-width: 1.5px;
}

#licensing {
  fill: green;
  stroke: green;
}

.link.aa {
  stroke: yellow;
}
.link.bb {
  stroke: pink;
}
.link.cc {
  stroke: blue;
}
.link.dd {
  stroke: green;
}
.link.ee {
  stroke: purple;
}
.link.ff {
  stroke: red;
}
.link.gg {
  stroke: black;
}

circle {
  fill: #fff;
  stroke: #333;
  stroke-width: 1.5px;
}

text {
  font: 10px sans-serif;
  pointer-events: none;
  text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
}

</style>
<body>
<div margin-top:400>

<nav class="navbar navbar-default " role="navigation">
            <div id = "banner">
                <ul class="nav nav-tabs " role="tablist">
                   <li role="presentation"><a href="http://localhost:8080/softwaretest/Student/junit.extensions.html" style="color:#44484F;">junit.extensions</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/junit.framework.html" style="color:#44484F;">junit.framework</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/junit.runner.html" style="color:#44484F;">junit.runner</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/junit.textui.html" style="color:#44484F;">junit.textui</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.html" style="color:#44484F;">org.junit</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.experimental.html" style="color:#44484F;">org.junit.experimental</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.experimental.categories.html" style="color:#44484F;">org.junit.experimental.categories</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.experimental.max.html" style="color:#44484F;">org.junit.experimental.max</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.experimental.results.html" style="color:#44484F;">org.junit.experimental.results</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.experimental.runners.html" style="color:#44484F;">org.junit.experimental.runners</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.experimental.theories.html" style="color:#44484F;">org.junit.experimental.theories</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.experimental.theories.internal.html" style="color:#44484F;">org.junit.experimental.theories.internal</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.experimental.theories.suppliers.html" style="color:#44484F;">org.junit.experimental.theories.suppliers</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.internal.html" style="color:#44484F;">org.junit.internal</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.internal.builders.html" style="color:#44484F;">org.junit.internal.builders</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.internal.matchers.html" style="color:#44484F;">org.junit.internal.matchers</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.internal.requests.html" style="color:#44484F;">org.junit.internal.requests</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.internal.runners.html" style="color:#44484F;">org.junit.internal.runners</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.internal.runners.model.html" style="color:#44484F;">org.junit.internal.runners.model</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.internal.runners.rules.html" style="color:#44484F;">org.junit.internal.runners.rules</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.internal.runners.statements.html" style="color:#44484F;">org.junit.internal.runners.statements</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.matchers.html" style="color:#44484F;">org.junit.matchers</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.rules.html" style="color:#44484F;">org.junit.rules</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.runner.html" style="color:#44484F;">org.junit.runner</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.runner.manipulation.html" style="color:#44484F;">org.junit.runner.manipulation</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.runner.notification.html" style="color:#44484F;">org.junit.runner.notification</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.runners.html" style="color:#44484F;">org.junit.runners</a></li>
<li role="presentation"><a href="http://localhost:8080/softwaretest/Student/org.junit.runners.model.html" style="color:#44484F;">org.junit.runners.model</a></li>

                </ul>
            </div> 
            </nav>
			 
	
<!--<h2>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp类间关系可视化结果</h2>-->


</div>
<script src="./d3.v3.min.js"></script>
<script type="text/javascript" src="data_1.js"></script>
<script>

// http://blog.thomsonreuters.com/index.php/mobile-patent-suits-graphic-of-the-day/

var nodes = [

];

// Compute the distinct nodes from the links.
links.forEach(function(link) {
  link.source = nodes[link.source] || (nodes[link.source] = {name: link.source});
  link.target = nodes[link.target] || (nodes[link.target] = {name: link.target});
});

var width = 1260,
    height = 620;

var force = d3.layout.force()
    .nodes(d3.values(nodes))
    .links(links)
    .size([width, height])
    .linkDistance(120)
    .charge(-300)
    .on("tick", tick)
    .start();

var svg = d3.select("body").append("svg")
.attr("padding-top",80)
    .attr("width", width)
    .attr("height", height);

// Per-type markers, as they don't inherit styles.
svg.append("defs").selectAll("marker")
    .data(["aa", "bb", "cc","dd","ee","ff","gg"])
  .enter().append("marker")
    .attr("id", function(d) { return d; })
    .attr("viewBox", "0 -5 40 10")
    .attr("refX", 15)
    .attr("refY", -1.5)
    .attr("markerWidth", 6)
    .attr("markerHeight", 6)
    .attr("orient", "auto")
  .append("path")
    .attr("d", "M0,-5L10,0L0,5");
	
	

var path = svg.append("g").selectAll("path")
    .data(force.links())
  .enter().append("path")
    .attr("class", function(d) { return "link " + d.type; })
    .attr("marker-end", function(d) { return "url(#" + d.type + ")"; });

 

var text = svg.append("g").selectAll("text")
    .data(force.nodes())
  .enter().append("text")
    .attr("x", 8)
    .attr("y", ".31em")
    .text(function(d) { return d.name; });
	
var circle = svg.append("g").selectAll("circle")
    .data(force.nodes())
  .enter().append("circle")
  .call(force.drag)
    .attr("r", function(d) {  return 5;
	} );
   
// Use elliptical arc path segments to doubly-encode directionality.
function tick() {
  path.attr("d", linkArc);
  circle.attr("transform", transform);
  text.attr("transform", transform);
}

function linkArc(d) {
  var dx = d.target.x - d.source.x,
      dy = d.target.y - d.source.y,
      dr = Math.sqrt(dx * dx + dy * dy);
  return "M" + d.source.x + "," + d.source.y + "A" + dr + "," + dr + " 0 0,1 " + d.target.x + "," + d.target.y;
}

function transform(d) {
  return "translate(" + d.x + "," + d.y + ")";
}

</script>